package com.example.wn.message.controller;

import com.example.wn.common.entity.UserInfo;
import com.example.wn.message.service.MessageService;
import com.example.wn.message.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MessageController {

    @Autowired
    private MessageService messageService;

    @Autowired
    private RedisService redisService;

    @PostMapping("/sendMessage")
    public void sendMessage(@RequestBody UserInfo userInfo){
        messageService.sendMessage(userInfo);

    }


}
